package com.bizihang.router.controller;

import com.bizihang.router.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 毕子航 951755883@qq.com
 * @date 2018/06/22
 */
@Slf4j
@RequestMapping(value = "/users")
@RestController
public class UserController {

	@Autowired
	UserService userService;

	@GetMapping(value = "/{userId}")
	public Object get(@PathVariable("userId") String userId) {
		Object o = userService.get(userId);
		return o;
	}
}
